package services.upms;


import base.IBaseServicesWithoutBLOBs;
import wt.dao.upms.PermissionMapper;
import wt.entity.upms.Permission;
import wt.entity.upms.PermissionExample;

import java.util.List;


/**
 * Created by Administrator on 2017/9/7.
 */
public interface PermissionServices extends IBaseServicesWithoutBLOBs< Permission, PermissionExample>, PermissionMapper {

    /**
     * 查询角色具有的权限
     *
     * @param roleId
     * @return
     * @throws Exception
     */
    List<Permission> selectByRoleId(String  roleId) throws Exception;

    /**
     * 查询账户具有的权限
     *
     * @param accountId
     * @return
     * @throws Exception
     */
    List<Permission> selectByAccountId(String accountId) throws Exception;


}
